package com.atguigu.gmall.order.config;

import com.atguigu.gmall.common.annotation.EnableAutoThreadPool;
import com.atguigu.gmall.common.annotation.EnableGlobalException;
import com.atguigu.gmall.common.annotation.EnableUserHeaderInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2024/10/7 6:09
 */

@EnableRabbit
@EnableAutoThreadPool
@EnableTransactionManagement
@EnableFeignClients({"com.atguigu.gmall.feign.cart","com.atguigu.gmall.feign.product","com.atguigu.gmall.feign.user","com.atguigu.gmall.feign.ware","com.atguigu.gmall.feign.pay"})
@EnableUserHeaderInterceptor
@MapperScan(basePackages = {"com.atguigu.gmall.order.mapper"})
@EnableGlobalException
@Component
@Configuration
public class OrderConfig {
}
